const mongoose = require('mongoose');

mongoose.connect('mongodb://localhost:27017/weixin', {
  useNewUrlParser: true,
  useUnifiedTopology: true,
  useFindAndModify: false,
  useCreateIndex: true
}).then(res => {
  // console.log(res);
});